<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page  import="com.burmagateway.model.TourPackage"%>
<html>
<head>
    <title>Create New Package</title>
</head>
<body>
 
<h2>Create New Package</h2>
 
<form:form method="post" action="add.html" commandName="tourpackage">
 
    <table>
    <tr>
        <td><form:label path="Title"><spring:message code="label.Name"/></form:label></td>
        <td><form:input path="Title" /></td> 
    </tr>
    <tr>
        <td><form:label path="Description"><spring:message code="label.Description"/></form:label></td>
        <td><form:input path="Description" /></td>
    </tr>    
    <tr>
        <td colspan="2">
            <input type="submit" value="<spring:message code="label.Submit"/>"/>
        </td>
    </tr>
</table>  
</form:form>
 
     
<h3>Tour Packages</h3>
<c:if  test="${!empty tourpackageList}">
<table class="data">
<tr>
    <th>Name</th>
    <th>Description</th>    
    <th>Action</th>
</tr>
<c:forEach items="${tourpackageList}" var="tp">
    <tr>
             
        <td><a href="delete/1">delete</a></td>
    </tr>
</c:forEach>
</table>
</c:if>
 
</body>
</html>